package uk.org.scuts.bantstadium2.attacks;

import uk.org.scuts.bantstadium2.Character;

public class Slap extends Attack {
	// Constructors
	public Slap() {
		super();
		_name = "Slap";
		_accuracy = 90;
		_power = 0.2;
	}
	
	public String Execute(Character user, Character target) {
		String log = (user.Name() + " aims a Slap at " + target.Name());
		switch (Hits(user, target)) {
		case MISS: 
			log += (" but misses. ");
		    break;
		case GLANCING:
			log += (" but barely connects. ");
			log += target.Hit(user.Attack() * 0.5 * _power);
		    break;
		case NORMAL: 
			log += (" and lands it nicely on " + target.PosPronoun() + " cheek. ");
        	log += target.Hit(user.Attack() * _power);
        	log += target.Enrage();
        	break;
		case CRITICAL: 
			log += (" and lands an ear-ringing critical hit. ");
			log += target.Hit(user.Attack() * 2 * _power);
			log += target.Enrage(2);
			break;
		}
		return log;
	}
}
